﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_ucToprightphuhuynh : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["ChildrenLogin"] != null || Session["TeacherLogin"] != null)
        {
            hplname.Text = Session["fullname"].ToString();
            hplname.NavigateUrl = "../trangcanhan.aspx";
            hplchangepass.NavigateUrl = "doimatkhau.aspx";
            if (Session["ChildrenLogin"] != null)
            {
                hplchangepass.NavigateUrl = "../doimatkhau.aspx";
            }
            else if (Session["TeacherLogin"] != null)
            {
                hplchangepass.NavigateUrl = "../doimatkhau.aspx?gv=1";
            }
        }
        else
        {
            if (Request.QueryString.Get("gv") == null)
            {
                Response.Redirect("dangnhap.aspx");
            }
            else Response.Redirect("dangnhap.aspx?gv=1");
        }
    }

}